app.service("specificationService",function($http){

    this.findPage=function (page,rows,specification) {
        return $http.post("/specification/findPage.do?page="+page+"&rows="+rows,specification);
    }

    this.save = function(entity){

        return $http.post("/specification/save.do",entity);
    }

    this.findOne=function(id){
        return $http.get("/specification/findOne.do?id="+id);
    }

    this.update=function(entity){
        return $http.post("/specification/update.do",entity);
    }

    this.del = function(ids){
        return $http.post("/specification/del.do?ids="+ids)
    }

});